
function Jinja2Login() {
    var xmlhttp;//新建一个变量名

	if (window.XMLHttpRequest){
		//  IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
		xmlhttp=new XMLHttpRequest();
	}else{
		// IE6, IE5 浏览器执行代码
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}

	xmlhttp.onreadystatechange=function(){
		if (xmlhttp.readyState==4 && xmlhttp.status==200){
			// var result = JSON.parse(xmlhttp.responseText) //相当于python的json.loads方法

            var content_dom = document.getElementById('content');
            content_dom.innerHTML = xmlhttp.responseText;
		}
	}
	//这里是发起请求
	var url = "/static/login.html"
	// alert(url)
	xmlhttp.open("GET", url, true);
	// xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlhttp.send();
}


function Jinja2PhoneNotify() {
    var xmlhttp;//新建一个变量名

	if (window.XMLHttpRequest){
		//  IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
		xmlhttp=new XMLHttpRequest();
	}else{
		// IE6, IE5 浏览器执行代码
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}

	xmlhttp.onreadystatechange=function(){
		if (xmlhttp.readyState==4 && xmlhttp.status==200){
			// var result = JSON.parse(xmlhttp.responseText) //相当于python的json.loads方法

            var content_dom = document.getElementById('content');
            content_dom.innerHTML = xmlhttp.responseText;
		}
	}
	//这里是发起请求
	var url = "/static/phone_notify.html"
	// alert(url)
	xmlhttp.open("GET", url, true);
	// xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlhttp.send();
}



function Jinja2(url) {
    var xmlhttp;//新建一个变量名

	if (window.XMLHttpRequest){
		//  IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
		xmlhttp=new XMLHttpRequest();
	}else{
		// IE6, IE5 浏览器执行代码
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}

	xmlhttp.onreadystatechange=function(){
		if (xmlhttp.readyState==4 && xmlhttp.status==200){
			// var result = JSON.parse(xmlhttp.responseText) //相当于python的json.loads方法

            var content_dom = document.getElementById('content');
            content_dom.innerHTML = xmlhttp.responseText;
		}
	}
	//这里是发起请求
	// alert(url)
	xmlhttp.open("GET", url, true);
	// xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlhttp.send();
}

//非异步 同步
function Jinja2_false(url) {
    var xmlhttp;//新建一个变量名

	if (window.XMLHttpRequest){
		//  IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
		xmlhttp=new XMLHttpRequest();
	}else{
		// IE6, IE5 浏览器执行代码
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}

	xmlhttp.open("GET", url, false);
	// xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlhttp.send();
	var content_dom = document.getElementById('content');
	content_dom.innerHTML = xmlhttp.responseText;

}

function Jinja2PhoneVerify() {
    var xmlhttp;//新建一个变量名

	if (window.XMLHttpRequest){
		//  IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
		xmlhttp=new XMLHttpRequest();
	}else{
		// IE6, IE5 浏览器执行代码
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}

	xmlhttp.onreadystatechange=function(){
		if (xmlhttp.readyState==4 && xmlhttp.status==200){
			var content_dom = document.getElementById('content');
            content_dom.innerHTML = xmlhttp.responseText;

            var phone = locationSearchToDict(location.search).notify_phone;
            var verify_phone_obj = document.getElementById("verify_phone");
            verify_phone_obj.value = phone;
		}
	}
	//这里是发起请求
    // alert(url)
    var url = '/static/phone_verify.html'
	xmlhttp.open("GET", url, true);
	// xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlhttp.send();
}

function Jinja2SetPassWord() {
    var xmlhttp;//新建一个变量名

	if (window.XMLHttpRequest){
		//  IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
		xmlhttp=new XMLHttpRequest();
	}else{
		// IE6, IE5 浏览器执行代码
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}

	xmlhttp.onreadystatechange=function(){
		if (xmlhttp.readyState==4 && xmlhttp.status==200){
			var content_dom = document.getElementById('content');
            content_dom.innerHTML = xmlhttp.responseText;

            var phone = locationSearchToDict(location.search).notify_phone;
            var verify_phone_obj = document.getElementById("verify_phone");
            verify_phone_obj.value = phone;
		}
	}
	//这里是发起请求
    // alert(url)
    var url = '/static/set_password.html'
	xmlhttp.open("GET", url, true);
	// xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlhttp.send();
}